import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// import print from 'print-js'
// import 'print-js/dist/print.css'

import ComponentsIndex from '@/components/index'
// elementUi
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

Vue.use(ElementUI)
// css样式文件
import '@/style/index.scss'
// 路由跳转守卫
import '@/permission' // permission control
// 接口调用
import http from '@/utils/http'

Vue.prototype.$http = http
// 提示设置
import tips from '@/utils/tips'

Vue.prototype.$tips = tips
// 公共方法
import util from '@/utils/util'

Vue.prototype.$util = util
// 引入echarts
// import echarts from 'echarts'// 引入的echarts
import * as echarts from 'echarts'

Vue.prototype.$echarts = echarts
// 滚动条注册
import scroll from 'vue-seamless-scroll'

Vue.use(scroll)
Vue.use(ComponentsIndex)
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
